﻿$workingDirectory = "D:\coding\cpp-network-learning\asio_project\cmake-build-debug"
$executablePath = ".\simple_client.exe"

$targetHostName = "localhost"
$targetPort = "10120"
$minPayloadSize = "0"
$maxPayloadSize = "65500"
$sendInterval = "20"

for ($i = 1; $i -le 10; $i++) {
    $command = "cd '$workingDirectory'; & '$executablePath' $targetHostName $targetPort $minPayloadSize $maxPayloadSize $sendInterval"
    Start-Process powershell -ArgumentList "-NoExit", "-Command", $command
}
